<script type="text/javascript">
$(document).ready(function(){
        setTimeout(function () { test(); }, 500);
        function test(){
          $("table").addClass("table-bordered table-hover table-striped");
      }
      });
    </script>
<!--
<div style="float: left;width:30%">  
<h3>新增日志：</h3>
<?php
$file=fopen("/var/www/html/ten100/log/new.txt","r") or exit("无法打开文件!");
// 读取文件每一行，直到文件结尾
while(!feof($file))
 {
    echo fgets($file). "<br>";
 }
fclose($file);
?> 
</div>
-->  
<div style="text-align: center;">   
<?php
header("Content-type: text/html; charset=utf-8");
$con = mysql_connect("113.215.1.161","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
//code
mysql_select_db("mydb", $con);//选库
mysql_query("set names 'utf8'");
$result = mysql_query("SELECT * FROM ten100 ORDER BY IP DESC");
echo "<table id='store'><th>受限IP</th>";

while($row = mysql_fetch_array($result))
  {
  echo "<tr style='font-weight:bold'>";  
  echo "<td>" . $row['IP'] . "</td>";
  echo "</tr>";
  }
echo "</table>";
echo "<br>";
echo "<br>";
mysql_close($con);

?> 
</div>
